import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-warehouse/scm/packing/page-query',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (params) => {
  return request({
    url: '/api/mes-warehouse/scm/packing/detail',
    method: 'get',
    params: { ...params }
  });
};

export const getDetailList = (params) => {
  return request({
    url: '/api/mes-warehouse/scm/packing/page-query-detail',
    method: 'get',
    params: { ...params }
  });
};

export const getLabelInfo = (params) => {
  return request({
    url: '/api/mes-admin/labeltemplate/list-by-partnerid',
    method: 'get',
    params: { ...params }
  });
};

export const printSn = (data) => {
  return request({
    url: '/api/mes-warehouse/scm/sequence/print',
    method: 'POST',
    data
  });
};
